home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 5727 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.9 KB

  1. Path: blv-pm2-ip26.halcyon.com!user
  2. From: hawkfish@punchdeck.com (Richard Wesley)
  3. Newsgroups: comp.lang.ada,comp.lang.c++,comp.lang.c,comp.lang.modula3,comp.lang.modula2
  4. Subject: Re: Hungarian notation
  5. Date: Tue, 06 Feb 1996 07:45:26 -0800
  6. Organization: Punch Deck Consulting
  7. Message-ID: <hawkfish-0602960745260001@blv-pm2-ip26.halcyon.com>
  8. References: <4cud8f$gup@news.netvision.net.il> <4dttefINNo29@keats.ugrad.cs.ubc.ca> <Pine.HPP.3.91.960122145028.27524A-100000@clear.cs.byu.edu> <dewar.822407363@schonberg> <Pine.HPP.3.91.960124References: <30C40F77.53B5@swsbbs.com> <4bd <4cc2b2$11jq@navajo.gate.net> <4cud8f$gup@news.netvision.net.il> <4dttefINNo29@keats.ugrad.cs.ubc.ca> <Pine.HPP.3.91.960122145028.27524A-100000@clear.cs.byu.edu> <dewar.822407363@schonberg> <Pine.HPP.3.91.960124Organization: Trinity College, Cambridge <jad1002.29.00020579@cam.ac.uk> <Pine.HPP.3.91.960203182917.987A-100000@clear.cs.byu.edu>
  9. NNTP-Posting-Host: blv-pm2-ip26.halcyon.com
  10. X-Newsreader: Yet Another NewsWatcher 2.1.2
  11.  
  12. In article <Pine.HPP.3.91.960203182917.987A-100000@clear.cs.byu.edu>,
  13. Douglas Evan Cook <cookd@cs.byu.edu> wrote:
  14.  
  15. >On Wed, 31 Jan 1996, James Dennett wrote:
  16. >
  17. >> >No, but somebody must have written those methods, no?  And that somebody 
  18. >> >needed to know how many bits each data type is, no?  When we changed from 
  19. >> >16 bit compiler to 32 bit compiler, the data files remained the same.  
  20. >> 
  21. >> Herein lies your problem - you broke the ADT. If the ADT didn't specify the
  22. >> size of the components then your code can't rely on them...
  23. >> so the data files would not necessarily remain the same if
  24. >> the implementation of the ADT changed.
  25. >
  26. >Ah, but the ADT *did* specify that the file format would remain the 
  27. >same.  And not all users of the applications are using the same platforms 
  28. >- some are running on 386's with 386 DOS extenders, some are running with 
  29. >286 extenders, some are running on overlaid versions of the program done 
  30. >for straight DOS, some are running on Windows NT, and some are running on 
  31. >non Intel based machines.  The users expect to be able to transfer files 
  32. >between each platform.  And so we compile, but in each platform we don't 
  33. >want to have to modify the ADT's because of compiler dependancies.  So we 
  34. >have the ADT's depend on typedef equivalents, so that when we need to 
  35. >compile for a new platform we only need to change 10-12 lines in the base 
  36. >definition file.
  37.  
  38. So out of curiosity, how did you handle endian issues (x86s do not use
  39. network byte order, unlike most of the rest of the hardware in the known
  40. universe)
  41.  
  42.  
  43. - rmgw
  44.  
  45. http://www.punchdeck.com/hawkfish/PunchDeck.html
  46.  
  47. ----------------------------------------------------------------------------
  48. Richard Wesley             | "I don't know about your dreams
  49. hawkfish@punchdeck.com     |  But mine are sort of hackneyed"
  50. hawkfish@electricfish.com  |   - Laurie Anderson, "Talk Normal"
  51. ----------------------------------------------------------------------------
  52.